#include "tools.h"
#include <stdio.h>
#include <getch.h>
char get_cmd(char start,char end)
{
	printf("请输入指令");
	while(true)
	{
		char cmd =getch();
		if(cmd>=start&&cmd<=end)
		{
			printf("%c\n",cmd);
			return cmd;
		}
	}
}
